import request from '@/utils/request'
// 数据级别排行
export function selectGradeList(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/selectGradeList',
    method: 'get',
    params: query
  })
}
// 单品多指标趋势图
export function selectShopSourceStatistics(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/selectCompeteShopSourceStatistics',
    method: 'get',
    params: query
  })
}
// 数据排行
export function selectProductMarketingRank(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/selectCompeteShopRank',
    method: 'get',
    params: query
  })
}
// 店铺名字列表
export function selectShopNameAll(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/selectShopNameAll',
    method: 'get',
    params: query
  })
}
// 店铺名字列表
export function comparisonStatisticsPro(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/comparisonStatistics',
    method: 'get',
    params: query
  })
}
// 查询竞店三级来源数据日报列表BiCompeteShopThreeSourcelselectCompeteShopRan
export function listBiCompeteShopThreeSource(query) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/list',
    method: 'get',
    params: query
  })
}

// 查询竞店三级来源数据日报详细
export function getBiCompeteShopThreeSource(id) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/' + id,
    method: 'get'
  })
}

// 新增竞店三级来源数据日报
export function addBiCompeteShopThreeSource(data) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource',
    method: 'post',
    data: data
  })
}

// 修改竞店三级来源数据日报
export function updateBiCompeteShopThreeSource(data) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource',
    method: 'put',
    data: data
  })
}

// 删除竞店三级来源数据日报
export function delBiCompeteShopThreeSource(id) {
  return request({
    url: '/marketing/BiCompeteShopThreeSource/' + id,
    method: 'delete'
  })
}
